﻿using miniMana.IService;
using miniMana.Request.GetSwiperData;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace miniMana.Service
{
    /// <summary>
    /// 
    /// </summary>
    public class HomeService : IHomeService
    {
        /// <summary>
        /// 获取轮播图数据
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        public List<GetSwiperDataResponse> GetSwiperData()
        {
            return new List<GetSwiperDataResponse>()
            {
                new GetSwiperDataResponse () {
                     image_src= "https://www.zhengzhicheng.cn/pyg/banner1.png",
                     open_type= "navigate",
                     goods_id= 129,
                     navigator_url= "/pages/goods_detail/main?goods_id=129"
                },
                new GetSwiperDataResponse () {
                     image_src= "https://www.zhengzhicheng.cn/pyg/banner1.png",
                     open_type= "navigate",
                     goods_id= 129,
                     navigator_url= "/pages/goods_detail/main?goods_id=129"
                },
                new GetSwiperDataResponse () {
                     image_src= "https://www.zhengzhicheng.cn/pyg/banner1.png",
                     open_type= "navigate",
                     goods_id= 129,
                     navigator_url= "/pages/goods_detail/main?goods_id=129"
                },
            };
        }
    }
}
